package com.company;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/7/10 14:49
 * @version: v1.0
 * @modified By:
 */
public class Student {
    private int id;
    private int studentId;
    private String studentName;
    private int chineseScore;
    private int englishScore;
    private int mathScore;
    private int totalScore;

    public Student(int studentId, String studentName, int chineseScore, int englishScore, int mathScore, int totalScore) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.chineseScore = chineseScore;
        this.englishScore = englishScore;
        this.mathScore = mathScore;
        this.totalScore = totalScore;
    }

    public Student() {
    }

    @Override
    public String toString() {
        return "学生id：" + studentId+
                "\t学生姓名：" +studentName+
                "\t学生语文成绩：" +chineseScore+
                "\t学生数学成绩：" +mathScore+
                "\t学生英语成绩：" +englishScore+
                "\t学生总成绩："+totalScore
                ;
    }

    public int getId() {
        return id;
    }

    public int getTotalScore() {
        return chineseScore+englishScore+mathScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(int chineseScore) {
        this.chineseScore = chineseScore;
    }

    public int getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(int englishScore) {
        this.englishScore = englishScore;
    }

    public int getMathScore() {
        return mathScore;
    }

    public void setMathScore(int mathScore) {
        this.mathScore = mathScore;
    }
}
